######################################
##	this is the best makefile   ##
##		EVER!		    ##
######################################
#	made by avishai moshka	     #
# i rule the world! you just don't   #
# 	    know it yet!             #
######################################

COMPILER = g++
FILE_NAME = a
DO = $(COMPILER)  -c $^ -lpthread  -o $@



all: OSThread.o OSScheduler.o Node.o main.cpp Shell.o Mailer.o Message.o ProtectedQ.o Messenger.o
	@$(COMPILER) $^ -o $(FILE_NAME) -lpthread


%.o:%.cpp
	@echo $@
	@$(DO)
	@echo 'done'

clean:
	rm *.o $(FILE_NAME) -f
